package com.wyclabs.cardmaker;

import java.util.Objects;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

/**
 * @author TylerW
 * @date 06/18/21 11:14 AM
 */
public class App extends Application {
    public static void main(String[] args) {
        // 启动软件
        Application.launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        Pane root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource("fxml/main.fxml")));
        Scene scene = new Scene(root, 1250, 800);
        stage.setScene(scene);
        stage.setTitle("CardMaker 代码生成器");
        stage.getIcons().add(new Image(Objects.requireNonNull(getClass().getClassLoader().getResourceAsStream("ico.jpg"))));
        stage.show();
    }
}
